import {
    createApp
} from 'vue'
import App from './App.vue'
import {
    router
} from './router'
import axios from './utils/axios'
import store from './store/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/css/common.scss'
import './assets/css/flex.css'
import locale from 'element-plus/lib/locale/lang/zh-cn' //中文
import GlobalComponent from './components/index.js'
const app = createApp(App); //定义全局Vue实例

initData(); //初始化


function initData() {
    initVueProtoype()
}

function initVueProtoype() {
    app.config.globalProperties.$http = axios
}
app.use(router).use(ElementPlus, {
    locale
}).use(store).mount('#app')
app.use(GlobalComponent)